<?php
/**
 * @category ContentEngine
 * @package Goatherd\Content
 *
 * @author Copyright (c) 2012 Maik Penz <maik@phpkuh.de>
 * @version $Id: Version.php 78 2012-03-27 07:58:45Z maik@phpkuh.de $
 *
 * This file is part of Goatherd library.
 *
 * Goatherd library is free software: you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * Goatherd library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Goatherd library. If not, see <http://www.gnu.org/licenses/>.
 */
namespace Goatherd\Content\Engine;

/**
 * Project name and initial feedback by Gabriel Dobersch
 * (http://www.suralin.com).
 *
 * Starting with version 3.0 the framework offers a higher abstraction of
 * previous code.
 *
 * @category ContentEngine
 * @package Goatherd\Content
 * @subpackage Engine
 */
final class Version
{
    const NAME = 'ContentEngine';

    const VERSION = '3.0-dev';

    /**
     * case-insensitive version_compare().
     *
     * @param string $version
     * @return int
     */
    public static function compareVersion($version)
    {
        return version_compare(strtolower($version), strtolower(self::VERSION));
    }
}